<?php

$suser = $_REQUEST['suser'];
$tuser = $_REQUEST['tuser'];
$redirect = $_REQUEST['redirect'];

$type = $_REQUEST['type'];
$typeid = $_REQUEST['typeid'];

$basedir = "/home/boostpo1/public_html/chirplace.com/usr/";
$topdir = $basedir.$tuser;
if (!is_dir($topdir))
{
	@mkdir($topdir, 0700);
	@mkdir($topdir."/prune", 0700);
	@mkdir($topdir."/forms", 0700);
	@mkdir($topdir."/scodes", 0700);
	@mkdir($topdir."/images", 0700);
}
copy($basedir.$suser."/".$type."/".$typeid.".php", $basedir.$tuser."/".$type."/".$typeid.".pnd");
if ($type == "images")
	copy($basedir.$suser."/".$type."/".$typeid.".jpg", $basedir.$tuser."/".$type."/".$typeid.".jpg");
//need to tweet this so the target user is aware of the new share.

header("Location: index.php?start=$redirect");
?> 
